$ npx react-native init imapp && cd imapp
$ npx react-native-run-ios
$ yarn add socketcluster-client
App.js
import SocketClusterClient from 'socketcluster-client';
let socket = SocketClusterClient.create({
hostname: 'localhost',
port: 8000
});
socket.transmit('foo', 123);
Server 可以收到 data
基本上已經可以確認接通了 SocketCluster Server 與 Client
之後就可以準備其他事情